# qRV - a QT4 Remote Viewing app
#
# Indrek Sünter <IndrekSnt@hotmail.com>

cmake_minimum_required(VERSION 2.8)

PROJECT(qRV)
FIND_PACKAGE(Qt4 REQUIRED)

FILE(GLOB SRC_qRV "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")

SET(qRV_SOURCES SRC_qRV)
# Only the headers for QT
SET(qRV_HEADERS "include/main_window.h")
# UI Forms for QT
SET(qRV_FORMS "")
# Resources for QT
SET(qRV_RESOURCES )

QT4_WRAP_CPP(qRV_MOC_SRC ${qRV_HEADERS})
QT4_WRAP_UI(qRV_FORMS_HEADERS ${qRV_FORMS})
QT4_ADD_RESOURCES(qRV_RESOURCES_RCC ${qRV_RESOURCES})

include(${QT_USE_FILE})

# Add intermediary files to includepath
INCLUDE_DIRECTORIES(/usr/include/qt4 include)

add_executable (bin/qRV ${SRC_qRV}
    ${qRV_MOC_SRC}
    ${qRV_FORMS_HEADERS} 
    ${qRV_RESOURCES_RCC})

# Link QT and libCURL
target_link_libraries (bin/qRV ${QT_LIBRARIES} curl)

